package com.cnbm.wcsbasic.protocol.netty.s7.s7connector.utils;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2022/12/5 11:11
 */
public class CommonFunctions {
    /**
     * a 整除 b ，如果有余数+1
     * */
    public static Integer exactDivision(Integer a,Integer b) {

        int c = a/b;

        if(a%b!=0){
            c = a/b+1;
        }
        return c;
    }
}
